package com.fifth.apartment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fifth.apartment.entity.BuildingInfo;
import com.fifth.apartment.entity.Equipment;
import com.fifth.apartment.entity.EquipmentType;
import com.fifth.apartment.vo.PageQueryVO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-07-09
 */
public interface EquipmentService extends IService<Equipment> {

    IPage<Equipment> findPage(PageQueryVO vo);

    EquipmentType[] findType();


    BuildingInfo[] findBuildingType();

    Equipment getEquipmentById(Integer id);


    Boolean putDetailsById(Integer id, String details,String state);

    Integer deleteEquipment(Integer id);

    Boolean addEquipment(Equipment equipment);
}
